{template "content","header"}

<script type="text/javascript" src="{JS_PATH}member_common.js"></script>

<style>

.submit {

	padding-left: 3px

}

.submit,.submit input {

	background: url({IMG_PATH}member/but.png) no-repeat;

	height: 29px;

	cursor: hand;

}



.submit input {

	background-position: right top;

	border: none;

	padding: 0 10px 0 7px;

	font-size: 14px

}



.reg {

	color: #666;

	line-height: 24px

}



.reg .submit {

	background-position: left -35px;

	height: 35px

}



.reg .submit input {

	background-position: right -35px;

	font-weight: 700;

	color: #fff;

	height: 35px

}

.newest .newestTit a{background-image:none; line-height:25px;}

</style>

<!--main-->

<div id="mainbody">

<!--startprint-->

	<div class="essay_left">

        <div class="introduce">

            	<h2 class="introduceTit"><span class="titlename">{$title}</span></h2>

                <ul class="e_newsList">

                	<li><span>{L('Release_mechanism')}：</span><strong>{$fbjg}</strong></li>

                    <li><span>{L('inputtime')}：</span><strong>{$fbrq}</strong></li>

                </ul>

                <p class="valid">{$description}</p>

        </div>

		<div class="newest">

			<h2 class="newestTit">
				<a href="javaScript:void(0)" class="hover" >{L('en_text')}</a><a href="javaScript:void(0)" >{L('china_text')}</a>				<a class="print" href="{APP_PATH}?m=content&c=index&a=send_contents_email&catid={$catid}&id={$id}"><em class="dy01"></a></em><em class="dy02" onclick="javascript:doPrint()"></em>			</h2>

			<div class="content">
			{if $power_content == 1}
			   	{$pcontent}
			{else}
			  	{$interpret_content}
			{/if}			
			</div>

			<div class="content hide">{$content}</div>

                                                <div id="pages" class="text-c">{$pages}</div>


		</div>

	</div>

<!--endprint-->

	<div class="essay_right">

		<h2 class="sort">{L('author_questions')}</h2>

		<div style="padding: 5px;">

			<p>

			    {php $usernamecode =urlencode($username) }

				<a href="?m=member&c=index&a=sendemail_author&username={$usernamecode}">向作者{$username}提问</a>

			  	

			</p>

		</div>

		<h2 class="sort">{L('related_articles')}</h2>

		<div class="menu news_update">

	         <ul>

		{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"}

              {if $data}

                        {loop $data $r}

							<li><a href="{$r[url]}">{$r[title]}</a></li>

			             	<li>{L('updatetime')}: {date("Y-m-d", $r[updatetime])}</li>

			             	<li class="mr5 mb10 butli">{L('publish_user')}: {$r[username]}</li>

                        {/loop}

              {/if}

          {/pc}

		  	</ul>

		</div>

		<h2 class="sort">{L('classify')}</h2>

		<div class="menu">

			<iframe name="center_frame" id="center_frame"

				src="?m=content&c=index&a=public_categorys&type=add&menuid=822&pc_hash=eAyt1x"

				frameborder="false" scrolling="auto" style="border: none"

				width="100%" height="700" allowtransparency="true"></iframe>

		</div>

	</div>

	<div class="clear"></div>

</div>

<div class="bk10"></div>

{if $repebrow == 3}

	<script>

	        	  $(function(){

	        		  window.top.art.dialog({id:'login'}).close(); 

	        		  window.top.art.dialog({title:'login',id:'login',iframe:'{APP_PATH}index.php?m=member&c=index& a=login&siteid={$siteid}&dialog=login',width:'480',height:'300'}); 

	        		  $(".aui_close").remove();

	        	  })  

        	</script>
	{elseif $repebrow == 2}

	<script>

		     	$(function(){

		     			var html = "<div class=\"reg\">{L('need_buy_read')}<br /><div class=\"submit\"><input type=\"button\" name=\"register\" value=\"{L('buy_read')}\" onclick=\"redirect('{APP_PATH}index.php?m=member&c=index&a=publicreapackage&siteid={$siteid}')\"></div></div>";  

		     			window.top.art.dialog({id:'buyread'}).close(); 

		     			var dialog = art.dialog({title:'Buy and read', id:'buyread', content:html,width:'280',height:'100',  lock: true, dblclick_hide:false}); 

		     			dialog.shake && dialog.shake();

		       		  	$(".aui_close").remove();

		       	 })  

		     </script>

	{elseif empty($_username)}
  	     <script>

	        	    setTimeout(showlogin , 120000);

	        	     function showlogin(){
	        		  window.top.art.dialog({id:'login'}).close(); 

	        		  window.top.art.dialog({title:'login',id:'login',iframe:'{APP_PATH}index.php?m=member&c=index& a=login&siteid={$siteid}&dialog=login',width:'480',height:'300'}); }
        	</script>


	{/if}
<!--footer-->



{template "content","footer"}

